package com.example.demo.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.example.demo.service.SentinelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: //todo
 * @Author: 张广焱
 * @Date: 2024-03-24 10:59
 */
@RestController
@RequestMapping("/sentinel")
public class Sentinel {
    @Autowired
    private SentinelService sentinelService;
    @RequestMapping("/test")
    public String test(){
        return sentinelService.test();
    }

}
